const ChkPrice =(obj)=> {
    if(/^(-?\d+)(\.\d{0,2})?$/.test(obj)){
        return obj
    }else{
        return obj.substr(0,obj.length-1);
    }
};

export default ChkPrice;
